package com.zimin.cloud.file.pojo.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

/**
 * @author zimin
 * @since 2022/3/30 10:19 上午
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Document("file_mapping")
public class FileMapping {
    @Id
    private String id;
    @Field("unique")
    private String unique;
    @Field("path")
    private String path;
}
